package com.cjx.stars.pojo.vo;

import com.cjx.stars.pojo.table.BlogComments;
import com.cjx.stars.pojo.table.Message;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serial;

/**
 * @author cjx
 * @description
 * @createDate 2024/4/22 16:08
 **/
@EqualsAndHashCode(callSuper = true)
@Data
@ApiModel(value = "消息返回")
public class MessageVO extends Message {
    /**
     * 串行版本uid
     */
    @Serial
    private static final long serialVersionUID = 4353136955942044222L;
    /**
     * 从用户
     */
    @ApiModelProperty(value = "发送用户信息")
    private UserVo fromUser;
    /**
     * 博客
     */
    @ApiModelProperty(value = "博客")
    private BlogVo blog;
    /**
     * 评论
     */
    @ApiModelProperty(value = "评论")
    private BlogComments comment;
}
